//
//
//
#ifndef __ROCKETPORTOCOLPASSWORD_H
#define __ROCKETPORTOCOLPASSWORD_H

#include "RocketRequest.h"
#include "RocketResponse.h"
#include "RocketCommon.h"

class CRocketRequestPassword : public CRocketRequest
{
public:
	CRocketRequestPassword(MNetworkEventObervser* aObserver);
	~CRocketRequestPassword();
	
	TBool	Encode();
	void 	SetInfo(const TDesC8& aUid, const TDesC8& aRand);
	
private:
	TBuf8<20>	iUid;
	TBuf8<20>	iRand;
};

class CRocketResponsePassword : public CRocketResponse
{
public:
	CRocketResponsePassword();
	~CRocketResponsePassword();
	
public:
	void OnStartElementL(const Xml::RTagInfo& aElement,
								const Xml::RAttributeArray& aAttributes,
								TInt aErrorCode);
	
	void OnEndElementL(const Xml::RTagInfo &aElement, 
										TInt aErrorCode);	
};

#endif
